package net.lanelife.casino.caipiao.dto.admin;

import javax.validation.constraints.NotNull;

import net.lanelife.casino.caipiao.entity.FeeRule.Mode;
import net.lanelife.casino.caipiao.entity.FeeRule.Type;
import net.lanelife.casino.common.dto.PersistentDTO;

import org.springframework.format.annotation.NumberFormat;

public class FeeRuleUpdateDTO extends PersistentDTO<Integer> {

	private static final long serialVersionUID = 6864844463857804781L;

	@NotNull
	private Integer id;
	
	@NotNull
	@NumberFormat(pattern = "0.##")
	private Double beginAmount;

	@NotNull
	@NumberFormat(pattern = "0.##")
	private Double endAmount;

	@NotNull
	private Mode mode;
	
	@NotNull
	private Type type;
	
	@NotNull
	private Double fee;
	
	@NotNull
	private Double minFee;
	
	@NotNull
	private Double maxFee;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Double getBeginAmount() {
		return beginAmount;
	}

	public void setBeginAmount(Double beginAmount) {
		this.beginAmount = beginAmount;
	}

	public Double getEndAmount() {
		return endAmount;
	}

	public void setEndAmount(Double endAmount) {
		this.endAmount = endAmount;
	}

	public Mode getMode() {
		return mode;
	}

	public void setMode(Mode mode) {
		this.mode = mode;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public Double getFee() {
		return fee;
	}

	public void setFee(Double fee) {
		this.fee = fee;
	}

	public Double getMinFee() {
		return minFee;
	}

	public void setMinFee(Double minFee) {
		this.minFee = minFee;
	}

	public Double getMaxFee() {
		return maxFee;
	}

	public void setMaxFee(Double maxFee) {
		this.maxFee = maxFee;
	}

}
